package com.googlecode.maratische.google.model;


public class Feed extends Model {

	private Integer parentId;
	private String name;//название Ленты
	private String xmlUrl;//урлы для скачивания
	private Boolean offlineSupport;//поддержка режима оффлайн
	private Integer unreadItems;//количество не прочитанных элементов
	private String feedDescriptorId;//?
	
	public boolean isFolder() {
		if (getFeedDescriptorId() != null && getFeedDescriptorId().length()>0) {
			return false;
		}
		return true;
	}
	
	public String getFeedDescriptorId() {
		return feedDescriptorId;
	}
	public void setFeedDescriptorId(String feedDescriptorId) {
		this.feedDescriptorId = feedDescriptorId;
	}
	public Boolean getOfflineSupport() {
//		if (offlineSupport == null) {
//			offlineSupport = Boolean.FALSE;
//		}
		return offlineSupport;
	}
	public void setOfflineSupport(Boolean offlineSupport) {
		this.offlineSupport = offlineSupport;
	}
	public Integer getUnreadItems() {
		return unreadItems;
	}
	public void setUnreadItems(Integer unreadItems) {
		this.unreadItems = unreadItems;
	}
	public Integer getParentId() {
		return parentId;
	}
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getXmlUrl() {
		return xmlUrl;
	}
	public void setXmlUrl(String xmlUrl) {
		this.xmlUrl = xmlUrl;
	}
}
